package jukebox.model.musicboard;

import java.util.List;
import java.util.Map;

import jukebox.model.common.CommentVO;
import jukebox.model.common.ListVO;

public interface MusicBoardService {
	public void writeContent(MusicBoardVO mbvo);
	public void updateContent(MusicBoardVO mbvo);
	public void deleteContent(int no);
	
	public Map pagingContent(MusicBoardVO mbvo);
	public Map pagingMoreContent(MusicBoardVO mbvo, int nowPage);

	public MusicBoardVO findContentByNo(int no);
	
	//추천
	public int updateLike(int boardNo);
	public void updateHit(int boardNo);
	
	//게시글 추천 수 기준의 랭킹
	public List<MusicBoardVO> getRankListByLike();
	
	// 댓글
	public Object pagingComment(int boardNo, int nowPage);
	public void writeComment(CommentVO mcvo);
	public void updateComment(CommentVO mcvo);
	public void deleteComment(int no);
	public List<CommentVO> findCommentListByBoardNo(int no);
	public CommentVO findCommentByCommentNo(int no);
}
